<style>
.form th {
	text-align: right;
}
</style>

<h2>Already a Qpid Affiliate? Login here !</h2>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<table>
		<tr>
			<th>
				Email / Affiliate ID
				<span class="required">*</span>
			</th>
			<td>
				<?php echo $form->textField($loginForm,'username'); ?>
				<?php echo $form->error($loginForm,'username'); ?>
			</td>
		</tr>
	
		<tr>
			<th>
				Password
				<span class="required">*</span>
			</th>
			<td>
				<?php echo $form->passwordField($loginForm,'password', array('autocomplete' => 'off')); ?>
				<?php echo $form->error($loginForm,'password'); ?>
			</td>
		</tr>
		
		<tr>
			<th></th>
			<td>
				<div class="row rememberMe">
					<?php echo $form->checkBox($loginForm,'rememberMe'); ?>
					<?php echo $form->label($loginForm,'rememberMe'); ?>
					<?php echo $form->error($loginForm,'rememberMe'); ?>
				</div>
			</td>
		</tr>
		<tr>
			<th></th>
			<td>
				<div class="row buttons">
					<?php echo CHtml::submitButton('Sign in'); ?>
				</div>
			</td>
		</tr>
	</table>

<?php $this->endWidget(); ?>
</div><!-- form -->
